/*
 * button.h
 *
 *  Created on: 2012-9-17
 *      Author: dell
 */

#ifndef BUTTON_H_
#define BUTTON_H_

#include "stm32f10x_lib.h"

#define PORT_SW_START			GPIOB
#define PORT_SW_UP				GPIOC
#define PORT_SW_DOWN			GPIOC
#define PORT_SW_RIGHT			GPIOA
#define PORT_SW_LEFT			GPIOA

#define PIN_SW_START			GPIO_Pin_3
#define PIN_SW_UP				GPIO_Pin_11
#define PIN_SW_DOWN				GPIO_Pin_10
#define PIN_SW_RIGHT			GPIO_Pin_14
#define PIN_SW_LEFT				GPIO_Pin_15

void startButtonPress();
void upButtonPress();
void downButtonPress();
void rightButtonPress();
void leftButtonPress();


#endif /* BUTTON_H_ */
